home *** CD-ROM | disk | FTP | other *** search
- Path: news.cc.uic.edu!sunphy1!olczyk
- From: olczyk@sunphy1 (Jung Oh)
- Newsgroups: comp.lang.c++,comp.lang.pascal.delphi.misc
- Subject: Re: C++ with Zapp vs. Delphi
- Followup-To: comp.lang.c++,comp.lang.pascal.delphi.misc
- Date: 18 Jan 1996 06:24:12 GMT
- Organization: University of Illinois at Chicago
- Message-ID: <4dkp2c$3d7m@tigger.cc.uic.edu>
- References: <4coar6$d4n@sun4.bham.ac.uk> <4coip7$69s@news1.usa.pipeline.com> <WaE/w0JfFiKC089yn@oslonett.no>
- NNTP-Posting-Host: sunphy1.phy.uic.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Rune Moberg (mobergru@oslonett.no) wrote:
- Your half year is still insufficient (unless you have several years of
- assembler ) to qualify you as a C programmer. From a general observance
- of the job market anything less then two years of C is still entry level
- (this observation has been confirmed by many of my friends). That is two years
- of full-time C. College work doesn't count, allthough some people will
- take a year of C and several years of research.
- : Anyway, without looking in any books, this is what I deciphered:
-
- : void (ah, a function returning nothing - aka procedure in Pascal)
- : sort (the function name)
- : void* base (uhm... An undefined pointer?)
- pointer to undefined type -- like Pascal POINTER
-
- : unsigned n (probably an unsigned integer - aka word in Pascal)
- Yes also probably a typo on Bjarne's part.
-
- : unsigned int sz (definatively an unsigned integer)
- : CFT cmp (right, a variable of type CFT declared above)
-
- : typedef int (*CFT) (void*,void*);
- : is what got me. What is this? Could it be a typedeclaring a function
- : returning an int, with two undefined arguments (pointers)? It would
- : probably deserve a comment (or three), or one could write it in Pascal.
- No need for a comment. Any one reading a good C program from cover to cover.
- The only complaint I have is with CFT. I like Compare or IsLarger better.
-
- : An event is just another method, handling all TObject descendants
- : (through the Sender parameter of type TObject)?
- No. An event is implemented as a function pointer. The actual code handling
- the event is a function/procedure. This function/procedure can be a method,
- but it doesn't have be.
- However the whole arguement begs the question. When a method accepts a TObject
- and typecasts it to other types so that it can send a method to it, the
- method's class can never be closed to change since there may be other
- classes generated later which must be typecast also.
- ---------------------------
- Thaddeus L. Olczyk
-